<%@ Page Theme="BlueSkin" Title="LMS : Staff Training --> Delegate to" Language="C#" MasterPageFile="~/LmsWebSite/MasterEN.master" AutoEventWireup="true" CodeFile="AssignToEN.aspx.cs" Inherits="AssignToEN" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="up1" runat="server" >
    <ContentTemplate>
        <asp:UpdateProgress ID="uprogress1" runat="server">
            <ProgressTemplate>
            
                <div style="position:fixed;width:30px;height:30px;top:0px;right:0px;border:1px solid orange;">
                    <img src="images/loading.gif" style="width:30px;height:30px;"  alt='Loading' title='Loading'/>
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    
        
<table cellspacing="5" cellpadding="5" width="100%">
        <tr>
            <td align="left" class="heading">
                <a href="ManagerMainEN.aspx">Staff Training</a> --> Delegate to
            </td>
        </tr>
    </table>
    <br />
    <div class="clearing"></div>

    <div class="aligning allWidthWithMargins direction" style="margin-top:0px;margin-right:30px;margin-left:30px;font-size:14px;">
        
        Delegate Employees :


        <%-- <div class="floating aligning direction" style="width:100px;">
                Badge            
             
              <div class="clearing"></div>      
        </div>
        <div class="floating aligning direction" style="width:300px;">
               <asp:Label ID="lblReqEmployeeBadge" runat="server" Text=""></asp:Label>           
              <div class="clearing"></div>      
        </div>
        <div class="clearing" style="height:10px;"></div> 

        <div class="floating aligning direction" style="width:100px;">
                Name             
             
              <div class="clearing"></div>      
        </div>
        <div class="floating aligning direction" style="width:300px;">
               <asp:Label ID="lblReqEmployeeName" runat="server" Text=""></asp:Label>           
              <div class="clearing"></div>      
        </div>


        <div class="clearing" style="height:10px;"></div>

        <div class="floating aligning direction" style="width:100px;">
                To             
             
              <div class="clearing"></div>      
        </div>
        --%>

        
        <div class="clearing"></div>

    </div>
    
    <div class="clearing" style="height:10px;"></div>

    <div class="aligning allWidth floating direction" style="margin-bottom:10px;">
        
        
        <div class="aligning allWidthWithMargins direction" style="margin:30px;">
            

            <asp:GridView DataKeyNames="GenID" ID="grdEmployees" runat="server" 
                AutoGenerateColumns="False" PageSize="3" AllowPaging="True" 
                 Font-Size="12px" 
                   
                
                Width="840px" onpageindexchanging="grdEmployees_PageIndexChanging" 
                EnableModelValidation="True">
                <HeaderStyle HorizontalAlign="Center" />
                <RowStyle HorizontalAlign="Center" />
                <EmptyDataTemplate>
                <div class="aligning floating direction" style="width:840px;">
                    <asp:Label ID="Label1"  runat="server" Text="Label" >No Employees Found</asp:Label> 
                    <br />
                    <br />
                    
                </div>
                    
                </EmptyDataTemplate>
                <Columns>
                    <asp:TemplateField HeaderStyle-CssClass="gridRowStyle" ItemStyle-CssClass="gridRowStyle">
            
            
            
                        <HeaderTemplate>
                            <asp:Label ID="lblBadgeHead" runat="server" Text="Badge" Width="40px" ></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            
                           <asp:Label ID="lblBadgeItem" runat="server" Text='<%#  Eval ("Badge") %>' Width="40px" style="margin-top:10px;margin-bottom:10px;"></asp:Label>
                                                     
                        </ItemTemplate>
                        <HeaderStyle CssClass="gridRowStyle" />
                        <ItemStyle CssClass="gridRowStyle" />
                    </asp:TemplateField>
                    
                   
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Label ID="lblFirstNameHead" runat="server" Text="First Name" Width="80px"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                           <asp:Label ID="lblFirstNameItem" runat="server" Text='<%#  Eval ("Name_EN") %>' Width="80px"></asp:Label>
                                                     
                        </ItemTemplate>
                    </asp:TemplateField>


                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Label ID="lblMiddleName_ENHead" runat="server" Text="Middle Name" Width="80px"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                           <asp:Label ID="lblMiddleName_ENItem" runat="server" Text='<%#  Eval ("MiddleName_EN") %>' Width="80px"></asp:Label>
                                                     
                        </ItemTemplate>
                    </asp:TemplateField>


                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Label ID="lblLastNameHead" runat="server" Text="Last Name" Width="80px"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                           <asp:Label ID="lblLastNameItem" runat="server" Text='<%#  Eval ("FamilyName_EN") %>' Width="80px"></asp:Label>
                                                     
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Label ID="lblGenderHead" runat="server" Text="Gender" Width="80px"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            
                           <asp:Label ID="lblGenderItem" runat="server" Text='<%# ((DatabaseComponent.Persons)(Container.DataItem)).objGenderValue.GenderNameEN %>' Width="80px"></asp:Label>
                                                     
                        </ItemTemplate>
                    </asp:TemplateField>
                    


                                        
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                        
                           
                        
               
                
                
                
                </Columns>
                
                
            </asp:GridView>
        </div>
    
    
    <div class="clearing" style="height:10px;"></div>

    <div class="aligning allWidthWithMargins direction" style="margin-top:0px;margin-right:30px;margin-left:30px;font-size:14px;">
        
        To A New Manager :  

        <div class="clearing" style="height:10px;"></div>


        <div class="floating aligning direction" style="width:300px;">
                <asp:TextBox ID="txtSearch" runat="server" Width="280px"></asp:TextBox>          
              <div class="clearing"></div>      
        </div>


        <div class="floating aligning direction" style="width:100px;">
            <asp:Button ID="btnSearch" runat="server" Text="Search" 
                onclick="btnSearch_Click" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/>
              <div class="clearing"></div>      
        </div>
        <div class="clearing"></div>
        </div>
        
        
        <div class="aligning allWidthWithMargins direction" style="margin:30px;">
            

            <asp:GridView DataKeyNames="GenID" ID="grdUsers" runat="server" 
                AutoGenerateColumns="False" AllowPaging="True" 
                 Font-Size="12px" 
                  onpageindexchanging="grdUsers_PageIndexChanging" 
                onrowdatabound="grdUsers_RowDataBound" onrowediting="grdUsers_RowEditing"
                Width="840px" EnableModelValidation="True">
                <HeaderStyle HorizontalAlign="Center" />
                <RowStyle HorizontalAlign="Center" />
                <EmptyDataTemplate>
                <div class="aligning floating direction" style="width:840px;">
                    <asp:Label ID="Label1"  runat="server" Text="Label" >No Employees Found</asp:Label> 
                    <br />
                    <br />
                    
                </div>
                    
                </EmptyDataTemplate>
                <Columns>
                    <asp:TemplateField HeaderStyle-CssClass="gridRowStyle" ItemStyle-CssClass="gridRowStyle">
            
            
            
                        <HeaderTemplate>
                            <asp:Label ID="lblBadgeHead" runat="server" Text="Badge" Width="40px" ></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            
                           <asp:Label ID="lblBadgeItem" runat="server" Text='<%#  Eval ("Badge") %>' Width="40px" style="margin-top:10px;margin-bottom:10px;"></asp:Label>
                                                     
                        </ItemTemplate>
                        <HeaderStyle CssClass="gridRowStyle" />
                        <ItemStyle CssClass="gridRowStyle" />
                    </asp:TemplateField>
                    
                   
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Label ID="lblFirstNameHead" runat="server" Text="First Name" Width="80px"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                           <asp:Label ID="lblFirstNameItem" runat="server" Text='<%#  Eval ("Name_EN") %>' Width="80px"></asp:Label>
                                                     
                        </ItemTemplate>
                    </asp:TemplateField>


                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Label ID="lblMiddleName_ENHead" runat="server" Text="Middle Name" Width="80px"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                           <asp:Label ID="lblMiddleName_ENItem" runat="server" Text='<%#  Eval ("MiddleName_EN") %>' Width="80px"></asp:Label>
                                                     
                        </ItemTemplate>
                    </asp:TemplateField>


                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Label ID="lblLastNameHead" runat="server" Text="Last Name" Width="80px"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                           <asp:Label ID="lblLastNameItem" runat="server" Text='<%#  Eval ("FamilyName_EN") %>' Width="80px"></asp:Label>
                                                     
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Label ID="lblGenderHead" runat="server" Text="Gender" Width="80px"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            
                           <asp:Label ID="lblGenderItem" runat="server" Text='<%# ((DatabaseComponent.Persons)(Container.DataItem)).objGenderValue.GenderNameEN %>' Width="80px"></asp:Label>
                                                     
                        </ItemTemplate>
                    </asp:TemplateField>
                    


                                        
                    
                    
                    
                    
                    <asp:TemplateField>
                        <HeaderTemplate>
                                <asp:Label ID="lblActionsHead" runat="server" Text="Action" ></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                           
                               

                                <asp:LinkButton ID="lnkAssign" runat="server" CommandName="Edit" CommandArgument='<%# Container.DataItemIndex %>'    Text="Delegate" CausesValidation="false"></asp:LinkButton>
                                
                                                 
                        </ItemTemplate>
                        
                        
                    </asp:TemplateField>
                    
                    
                    
                    
                    
                        
                           
                        
               
                
                
                
                </Columns>
                
                
            </asp:GridView>
        </div>
        
        
        
        
        <div class="clearing"></div>
        
        <div class="allWidth floating direction" style="text-align:right;">
        </div>
        
        
        <div class="clearing"></div>
        
        <div class="allWidthWithMargins direction" style="margin-left:30px;margin-right:30px;">
            <div class="aligning direction" style="float:right">
                <asp:Button ID="btnBack" runat="server" Text="Back" CausesValidation="false" OnClientClick="history.go(-1);return false;" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/>
            </div>
            <div class="clearing"></div>
        </div>

        <div class="clearing"></div>
        
        
        <div class="aligning allWidthWithMargins direction" style="margin-left:30px;margin-right:30px;">
            <asp:Label ID="lblError" runat="server" Text="" ForeColor="Red" EnableViewState="false" ></asp:Label>
            <div class="clearing"></div>
            <asp:Label ID="lblResult" runat="server" Text="" ForeColor="Green" EnableViewState="false" ></asp:Label>
            
            <div class="clearing"></div>
        </div>
        
        <div class="clearing"></div>
        
    </div>
    
    <div class="clearing"></div>
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

